package webEquipeRechercheGwt.server.webEquipeRechercheServices;

import java.util.Collection;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import webEquipeRechercheGwt.client.entityMirror.SoftwareMirror;
import webEquipeRechercheGwt.client.services.SoftwareService;
import webEquipeRechercheGwt.server.rmiManager.RmiManager;

public class SoftwareServiceImpl extends RemoteServiceServlet implements SoftwareService {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6089474339562648257L;

	@Override
	public Collection<SoftwareMirror> getSoftwares() {
		RmiManager rmi = new RmiManager();
		return rmi.getWebEquipeRechercheFacade().getSoftwaresMirrors();
	}

	@Override
	public boolean createSoftware(SoftwareMirror s) {
		RmiManager rmi = new RmiManager();
		return rmi.getWebEquipeRechercheFacade().createSoftware(s);
	}

}
